package com.example.bausip;

public class Task {
	private Integer id, course_id;
	private String name , course,type;
	private String description;
	private String dueDate;
	

	public Task(int id, String name, String address) {
		this.id = id;
		this.name = name;
	}

	public Task(int id, String name, String description,
			int course_id, String dueDate) {
		this.id = id;
		this.setCourse_id(course_id);
		this.name = name;
		this.description = description;
		this.dueDate = dueDate;
	}

	

	public Task(int id) {
		this.id = id;
	}

	public Task() {
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getdueDate() {
		return dueDate;
	}

	public void setdueDate(String dueDate) {
		this.dueDate = dueDate;
	}

	

	public String toString() {
		
			return this.name;
	}

	public String displayName() {
		
			return this.name;
	}

	@Override
	public boolean equals(Object obj) {
		Task c = (Task) obj;
		if (this.id == c.getId())
			return true;
		return false;
	}

	public Integer getCourse_id() {
		return course_id;
	}

	public void setCourse_id(Integer course_id) {
		this.course_id = course_id;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
